﻿var 月杪 = "#fMap/MapHelper.img/mark/MoonRabbitParty#";
var 怪物公园 = "#fMap/MapHelper.img/mark/Carnival#";
var 天空庭院 = "#fMap/MapHelper.img/mark/Goldrich#";
var 毒雾森林 = "#fMap/MapHelper.img/mark/EilnForest#";
var 废弃任务 = "#fMap/MapHelper.img/mark/KerningParty#";
var 鬼魂公园 = "#fMap/MapHelper.img/mark/GhostPark#";
var 玩具任务 = "#fMap/MapHelper.img/mark/LudiTower1#";
var 次元入侵 = "#fMap/MapHelper.img/mark/Pantheon#";
var 冰骑士 = "#fMap/MapHelper.img/mark/IceKnight#";
var 御魔龙 = "#fMap/MapHelper.img/mark/IceKnight#";
var BOSS = "#fMap/MapHelper.img/mark/Krease#";
var 外星 = "#fMap/MapHelper.img/mark/OmegaSector#";
var 武陵道场 = "#fMap/MapHelper.img/mark/MuruengRaid#";
var 西门町 = "#fMap/MapHelper.img/mark/SeoMoonJung#";
var 怪物公园 = "#fMap/MapHelper.img/mark/Carnival#";
var z12 = "#fMap/MapHelper.img/weather/present/1#"; //礼物绿Pantheon
var a = 0;
function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status == 0 && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1) {
		status++;
	} else {
		status--;
	}
	if (status == 0) {
		var selStr = " #e#r" + cm.getServerName() + "·个人副本" + "#n\r\n";
		selStr += " PS：除了副本奖励以外不要忘记排行榜奖励哟！ " + "\r\n";

		selStr += "#d#e#L0#" + 武陵道场 + "武陵道场#l #L1#" + 西门町 + "枫叶高校#l\r\n#L3#"  + BOSS + "BOSS竞技#l#n\r\n";
		selStr += "#d#e#L4#" + 怪物公园 + "怪物公园#l";
		cm.sendSimple(selStr);
	} else if (status == 1) {
		switch (selection) {
		case 0://武陵道场
			cm.dispose();
			cm.warp(925020000, 0);
			break;	
		case 1://ok 枫之高校
			cm.dispose();
			cm.warp(744000000, 0);
			break;
		case 2://外星入侵
			cm.dispose();
			cm.warp(861000000, 0);
			break;
		case 3:
			cm.dispose(); //ok boss竞技 
			cm.warp(932200000, 0);
			break;
		case 4://ok 怪物公园
			cm.dispose();
			cm.warp(951000000, 0);
			break;
		case 5:
			cm.dispose();
			cm.openNpc(1530549, "zxjl");
			break;
		case 6:
			cm.dispose();
			cm.openNpc(1530549, "9310561");
			break;
		case 7:
			cm.dispose(); //服务中心
			cm.openNpc(1002009);
			//cm.openNpc(1530549, "9010060");
			break;
		case 8:
			cm.dispose(); //服务中心
			cm.openNpc(1540008);
			break;
		case 10:
			cm.dispose();
			cm.openNpc(1530549, "zzjl"); //魔方商城
			break;
		case 11:
			cm.dispose();
			cm.openNpc(1530549, "wncsong");
			break;
		case 12:
			cm.dispose();
			cm.openShop(61);
			break;
		case 13:
			cm.dispose();
			cm.openNpc(9310074);
			break;
		case 14:
			cm.dispose();
			cm.openNpc(9020000);
			break;
		case 15:
			cm.dispose();
			cm.warp(925020000, 1);
			break;
		case 16:
			cm.dispose();
			cm.warp(744000000, 0);
			break;
		case 17:
			cm.dispose();
			cm.warp(940020000, 1);
			break;

		}
	}
}
